m_service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
m_service.Credentials = new WebCredentials(m_username, m_password);
m_service.AutodiscoverUrl(m_username", RedirectionUrlValidationCallback);
//sometimes it gives the correct endpoints but when i restart my computer it give the following error:
The specified name is not a forest, Active Directory domain controller, ADAM instance, or ADAM configuration set. Parameter name
and again after some time it gives me correct endpints.
How can i make Autodiscover service more stable ?